places: Fix crash when disconnecting
authorCorey Berla <corey@berla.me>
Wed, 27 Apr 2022 19:16:11 +0000 (12:16 -0700)
committerAntónio Fernandes <antoniof@gnome.org>
Sat, 7 May 2022 17:22:15 +0000 (18:22 +0100)
After disconnecting a network mount in places (when there's 2 or more
mounts), right clicking another mount crashes the application.
Set row_for_action to NULL when successfully unmounted.

gtk/gtkplacesview.c

index cb13276513c502202aab5284e3f4cd8ed5e299a5..a8ac3613a439276c8d83e13ad5ea95eceaca6849 100644 (file)
@@ -1319,6 +1319,7 @@ volume_mount_ready_cb (GObject      *source_volume,
       return;
     }
 
+  view->row_for_action = NULL;
   view->mounting_volume = FALSE;
   update_loading (view);